﻿
@model RTW.OA.Models.meeting
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>@ViewBag.Title </h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("Edit", "Meeting", FormMethod.Post, new { area = "Meeting", id = "meetingfrom", name = "meetingfrom" }))
                {
                    @Html.AntiForgeryToken()

                    <div class="from-content">
                        <dl>
                            <dt>会议名称</dt>
                            <dd>
                                @Html.EditorFor(m => m.M_NAME, new { htmlAttributes = new { @class = "input normal form-control", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>会议主题</dt>
                            <dd>
                                @Html.EditorFor(m => m.M_TOPIC, new { htmlAttributes = new { @class = "input normal form-control", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>会议描述</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.M_DESC, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>内部出席人员</dt>
                            <dd>
                                @Html.EditorFor(m => m.M_ATTENDEE, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>开始时间</dt>
                            <dd>
                                @Html.EditorFor(m => m.M_START, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>结束时间</dt>
                            <dd>
                                @Html.EditorFor(m => m.M_END, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>会议室</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.M_ROOM, ViewBag.M_ROOMData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>外部出席人员</dt>
                            <dd>
                                @Html.EditorFor(m => m.M_ATTENDEE_OUT, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>事务提醒标志</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.SMS_REMIND, new { @class = "form-control" }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>指定读者</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.READ_PEOPLE_ID, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>附件</dt>
                            <dd>
                                @Html.TextBoxFor(m => m.ATTACHMENT_ID, new { @class = "input normal upload-path" })<div class="upload-box upload-img"></div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>查看人员</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.SECRET_TO_ID, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>查看角色</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.PRIV_ID, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>查看部门</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.TO_ID, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>提醒时间</dt>
                            <dd>
                                @Html.EditorFor(m => m.RESEND_LONG, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>提醒次数</dt>
                            <dd>
                                @Html.EditorFor(m => m.RESEND_SEVERAL, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>会议设备</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.EQUIPMENT_ID_STR, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>会议纪要员</dt>
                            <dd>
                                @Html.EditorFor(m => m.RECORDER, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>写入日程标识</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.CALENDAR, new { @class = "form-control" }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>是否发送电子邮件提醒</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.TO_EMAIL, new { @class = "form-control" }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>提醒时间（分钟）</dt>
                            <dd>
                                @Html.EditorFor(m => m.RESEND_LONG_FEN, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>是否提醒查看范围</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.TO_SCOPE, new { @class = "form-control" }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>查看范围-事务提醒标志</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.SMS_REMIND_2, new { @class = "form-control" }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>查看范围-电子邮件标识</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.TO_EMAILS, new { @class = "form-control" }) </div>
                            </dd>
                        </dl>
                        @Html.HiddenFor(m => m.M_ID)

                    </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;">
                            <a class="btn btn-sm btn-primary radius" onclick="savefrom()">
                                <i class="iconfont icon-save"></i>
                                提交保存
                            </a>
                            <a class="btn btn-sm btn-warning radius" onclick="parent.subcloseTab('1701')">
                                <i class="iconfont icon-fanhui"></i>
                                取消关闭
                            </a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/uploader.js")"></script>

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#meetingfrom").initValidform();
            $(".upload-img").InitUploader({ filesize: "@RTW.OA.Servers.CommServers.LoadSysConfig().imgsize", sendurl: "@Url.Content("~/Ashx/Upload_ajax.ashx")", swf: "@Url.Content("~/Content/js/common/webuploader/uploader.swf")", filetypes: "@RTW.OA.Servers.CommServers.LoadSysConfig().fileextension" });

        });
        function savefrom() {
            $("#meetingfrom").submit();
        }

    </script>

}